Helicopter Game - Simple 2D Text Graphic Engine

Game Discription:
	The idea is based on the famous Flash Helicopter Game => www.helicoptergame.net
	You can control the helicopter ...yes i know it rather looks like a penis ... anyways lets call it
	helicopter. 
	Okay, to start the game and control the helicopter u just need ur SPACEBAR. Push it to once to start
	the game and keep press it to gain height, release to sink again.
	The goal is to get as far as u can without touching any walls!

Why did i program a Game in notepad?
	I wanted to create something visual and playable. At first i thought of using GDI or OpenGL but
	i prefered to do something without any external DLLs.
	I hit on this idea when i was scrolling through the windows character map. With just 
	Five Shades of Grey i'm able to display simple color gradients. Then i started to work on it.

Technical information:
	I use an 100x40 DisplayArray to store the 5 different colors in it.
	Each iteration of mainLoop the Array gets cleared to the background-color and everything gets redrawn
	into the array. Afterwards the array gets converted into a String and the string is set as text
	to the Notepad Edit Control.

	Every shape is specified by its vertices and an associated color.

	At first i implemented a function to draw lines with a starting point and an end point just by
	iterating the x-Coordinates and add the slope to y.
	The color gradient is calculated with linear interpolation.

	Next step was to implement a function to draw polygons. To keep it easier and smaller the
	function only support convex polygons.
	The polygons are defined by its corner points and each corner point has its own color.
	The calculation of a color gradient in polygons is a bit more complex. Thats why this part is the
	longest function in the script.
	At first i have to find the minimum and maximum Y-coordinate of the given polygon.
	Then i iterate from Ymin to Ymax.
	For every Y i calculate the point of intersection with all edges of the polygon to find the 
	minimumX and maximumX coordinate. With linear interpolation i get the color of Xmin and Xmax.
	Now i iterate from Xmin to Xmax, again calculate the color at the given x and write this color 
	into the DisplayArray at position X,Y.

	In my uncompressed script im able to draw lines, polygons and polygons with outlines.
	As i didnt really need lines and outlined polygons for this game i strike this two features off.

	The 'terrain' gets randomly generated and consists of 4 polygons at the top and 4 polygons 
	at the bottom.

	For the game i have to be able to move this polygons.
	This one was really easy, i just had to modify the corner points of the polygons and redraw it.

	Next i needed some kind of collision detection and i wanted to keep this pretty simple too.
	When i draw the pen.. i mean helicopter, i just check if at the given X,Y coordinate is already
	a different color set than the background color. If so... shazam! We have a collision and
	the game is over!

	The Score simply is a timer where 10ms = 1 Point.

	Last thing i did was some finetuning of the player-movement and, of course, the compression of
	the script.
	The original script had (with comments and stuff) 184 lines.
	
Script by Wambo, CodeBot.de